﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BarFaculdade
{
   static class Program
   {
      /// <summary>
      /// The main entry point for the application.
      /// </summary>
      [STAThread]
      static void Main()
      {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);

         frmLogin login = new frmLogin();

         DialogResult resultado = login.ShowDialog();

         if (resultado == DialogResult.OK)
         {
             Application.Run(new frmPrincipal());
         }
         else
         {
             login.Close();
         }
         
      }
   }
}
